home *** CD-ROM | disk | FTP | other *** search
-
-
-
- rrrreeeeaaaaddddddddiiii((((3333GGGG)))) rrrreeeeaaaaddddddddiiii((((3333GGGG))))
-
-
-
- NNNNAAAAMMMMEEEE
- rrrreeeeaaaaddddddddiiii - reads a rectangular screen region, returning displayed pixel
- colors in a packed RGB format.
-
- FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee rrrreeeeaaaaddddddddiiii((((xxxx1111,,,, yyyy1111,,,, xxxx2222,,,, yyyy2222,,,, nnnneeeewwwwxxxx,,,,
- iiiinnnntttteeeeggggeeeerrrr****4444 xxxx1111,,,, yyyy1111,,,, xxxx2222,,,, yyyy2222,,,, hhhhiiiinnnnttttssss
- iiiinnnntttteeeeggggeeeerrrr****4444 ppppaaaarrrrrrrraaaayyyy((((****))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _x_1 expects the x screen coordinate of one corner of the rectangle.
-
- _y_1 expects the y screen coordinate of one corner of the rectangle.
-
- _x_2 expects the x screen coordinate of the opposite corner of the
- rectangle.
-
- _y_2 expects the y screen coordinate of the opposite corner of the
- rectangle.
-
- These coordinates are relative to the lower-left pixel on the
- screen, whose coordinates are 0,0. It does not matter whether x1
- is greater than or less than x2, nor y1 greater than or less than
- y2.
-
- The rectangle specification is inclusive. Thus the rectangle
- specified by coordinates 5,10,14,6 is 10 pixels wide and 5 pixels
- high.
-
- _p_a_r_r_a_y expects the array that is to receive the pixels that are read.
- Pixels are returned in packed ABGR format, with red occupying the
- lower 8 bits and alpha (if available) occupying the upper 8 bits.
- Returned alpha is one (0xff) if the pixel is in color index mode
- or if no alpha bitplanes are present. Return order is left-to-
- right, then bottom-to-top, i.e.
-
-
-
- 6 7 8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- rrrreeeeaaaaddddddddiiii((((3333GGGG)))) rrrreeeeaaaaddddddddiiii((((3333GGGG))))
-
-
-
- 3 4 5
-
-
-
- 0 1 2
-
-
- _h_i_n_t_s
- hints is an unsigned long passed to rrrreeeeaaaaddddddddiiii which serves as
- a bit mask for enabling the various rrrreeeeaaaaddddddddiiii modifiers
- delineated in the list of constants below. The constants
- are specified by bitwise ORing them, or by adding them.
- For example,
-
- readdi(0,0,99,99,parray,(RDFREZ + RDALPH))
-
- blocks graphics while reading the display and returns an
- image in which alpha is equal to one.
-
- These modifiers are hints, not directives, and are
- therefore ignored by systems that do not support the
- requested feature.
-
- The following hints are available:
-
- RRRRDDDDFFFFRRRREEEEZZZZ freezes the screen by blocking all graphics calls
- until the read is completed. This assures that the
- returned data accurately represents what was being
- displayed at the time of the call.
-
- If graphics calls are allowed to proceed while rrrreeeeaaaaddddddddiiii is
- executing, it is possible that the returned data may not
- resemble what was displayed at the time of execution,
- since drawing commands and commands that affect the
- display state ( etc.) can change the displayed data while
- it is being read.
-
- RRRRDDDDAAAALLLLPPPPHHHH returns all alpha values set to one (represented as
- 0xff in the color space of this command).
-
- If not requested, actual alpha values are returned if
- alpha planes are installed and the pixel is in RGB mode.
- One (0xff) is returned for pixels in color index mode or
- if no alpha planes are installed.
-
- RRRRDDDDIIIIGGGGPPPPUUUU ignores the contents of the pop-up framebuffer.
-
- RRRRDDDDIIIIGGGGOOOOVVVV ignores the contents of the overlay framebuffer.
-
- RRRRDDDDIIIIGGGGOOOOVVVV ignores the contents of the underlay framebuffer.
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- rrrreeeeaaaaddddddddiiii((((3333GGGG)))) rrrreeeeaaaaddddddddiiii((((3333GGGG))))
-
-
-
- RRRRDDDDOOOOFFFFFFFFSSSS Data read beyond the framebuffer boundary is
- returned equal to zero, regardless of the setting of this
- hint. Reading beyond the framebuffer boundary may reduce
- performance.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- rrrreeeeaaaaddddddddiiii generates the displayed value of each addressed pixel, taking into
- account all display bitplanes and modes except those of the cursor. The
- ABGR values returned therefore correspond to the values viewed on the
- monitor, with the following exceptions:
-
- 1. The returned values are not gamma corrected.
-
- 2. The cursor will not appear in the returned data.
-
- 3. If either of the hints RDIGUN, RDIGOV, or RDIGPU is set, the
- corresponding framebuffer data will not be included in the returned
- data.
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- rrrreeeeaaaaddddddddiiii returns the number of pixels read.
-
- NNNNOOOOTTTTEEEESSSS
- This subroutine is available only in immediate mode.
-
- BBBBUUUUGGGGSSSS
- On IRIS-4D VGX and VGXT models, rrrreeeeaaaaddddddddiiii does not correctly read the
- underlay planes when the program is double buffered.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-